import Vue from 'vue'
import VueRouter from 'vue-router'
// 发现音乐
import DiscoverMusic from '../components/Aside/href/DiscoverMusic.vue'
// 最新音乐
import LatestMusic from '../components/Aside/href/LatestMusic.vue'
//推荐歌单
import RecommendedPlaylist from '../components/Aside/href/RecommendedPlaylist.vue'
// 最新MV
import LatestMv from '../components/Aside/href/LatestMv.vue'
// 搜索
import Serach from '../components/Aside/href/result.vue'
import palylist from '../components/Aside/href/playlist.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: DiscoverMusic
  },
  {
    path: '/DiscoverMusic',
    component: DiscoverMusic
  },
  {
    path: '/LatestMusic',
    component: LatestMusic
  },
  {
    path: '/RecommendedPlaylist',
    component: RecommendedPlaylist
  },
  {
    path: '/LatestMv',
    component: LatestMv
  },
  {
    path: '/result',
    component: Serach
  },
  {
    path: '/palylist',
    component: palylist
  }
]

const router = new VueRouter({
  routes
})

export default router
